package com.zxz.task.config;

import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;

import java.io.IOException;

/**
 * 数据源资源配置
 * @author dragon
 * @since 3.0.0
 */
public class DatabaseResource {

    private String path;

    public Resource[] getResources() throws IOException {
        return new PathMatchingResourcePatternResolver().getResources(path);
    }

    public void setPath(String path) {
        this.path = path;
    }
}
